import request from "@/utils/request";

// 修改基础URL为正确的服务器地址


//获取轮播图
export function plan(data) {
  return request({
    url: "/wx/app/purchase/getList",
    method: "get",
    params: data,
  });
}

export function concertList(data) {
  return request({
    url: "/wx/app/concert/list",
    method: "get",
    params: data,
  });
}

export function issue(data) {
  return request({
    url: "/wx/app/issue",
    method: "post",
    data: data,
  });
}


export function getDetail(id) {
  return request({
    url: `/wx/app/purchase/${id}`,
    method: "get",
  });
}

// /wx/app/purchase/join

export function join(data) {
  return request({
    url: `/wx/app/purchase/join`,
    method: "post",
    data: data,
  });
}

export function purchaseList(data) {
  return request({
    url: `/wx/app/concert/purchase/list`,
    method: "get",
    params: data,
  });
}
export function introduce(data) {
  return request({
    url: "/wx/app/introduce/list",
    method: "get",
    params: data,
  });
}

export function user(data) {
  return request({
    url: "/wx/app/user",
    method: "get",
  });
}

export function detail(id) {
  return request({
    url: `/wx/app/introduce/${id}`,
    method: "get",
  });
}
// /wx/app/introduce/list
export function login(data) {
  return request({
    url: "/wx/app/user/login",
    method: "post",
    data: data,
  });
}








